groups resource implementation + test