The old wall had a nipple and a flange. Wrap the ends of the new nipple with plumber's tape and take the test cap off. Push the nipple into the wall with the ring against the wall. The bolts need to be pushed from behind at this time.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.