Fix api key test