added rspec testing for user model