Added tests for ApiKeyHandler