added tests for user