fixed controller create test, added test for model validation (and corresponding code to make it pass)