Update model via restful api

- refactoring test user model