Error in unit test, resolved