rewrite workgroups feature to rspec