Fixed the tests for user, implemented user