Currently, in test_endpoint_policy.py we use the resource_class of project to create a policy instance. We should use the resource_class of policy to create policy instance. Closes-Bug: #1418316 Change-Id: I4fc444b266c61da0a131651d7aa636021f6ea5f9