add tests for user model