added test for policy to api_spec