Fixing a unit test