after model.validate() did not get any error message. Added test to ensure that model.validate() set the correct error messages.