Fix api key usage on tests