Fixing broken unit test