added tests for User