Catch rejected promise when testing user saving
The test runner is showing a warning about an uncaught Promise rejection in model_test.js.
Saving the user object is wrapped within a Promise, so the test needs to catch a rejected Promise to get the validation error, rather than trying to catch the ValidationError exception.