created unit tests for User
Merge pull request #22 from vikram7/redo_branch

created unit tests for User