added rspec test for User model