Added rspec tests for user data