Removing unneeded variable from unit test