Tests were failing as request to api was missing