created rspec shared examples amnd macros and cleaned up groups controller spec