Implement group_policy mocks and unit tests