Added tests to specs/models/user_spec.rb