Fixing failing unit test