added unit test for group findByGroupId function