added tests for usermodel