Add api_spec to test API registration