added check for API KEYS in test script