Added more rspec tests for user_spec.rb