fixed tests for user model