rspec testing added for user model