Is there any way to reduce duplicate code between this test and the previous?