Fixing a broken unit test