fixing unit tests now that i have api_key_resource in API.resources by default