Added rspec tests for groups