More robust apiKey test