added tests to user class