remove duplicate code

seems the test method is doing something that is completely unnecessary
to me