Fixing problem with unit test