fixed validation errors in unit test