added user test cases, and minor updates to User class