#1004 User model api handlers

* Improve user tests
* Return user model when creating it
* Fix error responses