fix tests after adding validation to the models

in commit d1ad97b6fd02f9c7ee635ed8f3f16c4983ef73d6 I added validation to
the models but I have not fixed the tests after that