Fix GroupResource. Add missing tests.