implement dual interfaces for checkApiKey and include tests