added test to user model
Merge pull request #13 from salamanders-2014/new-user-tests

added test to user model