Update pattern matching logic of apiKeys plugin to match the oauth plugin.
Correct variable name 'stat' to 'stats' in test file.
Add code coverage test cases for apikeys plugin and functional coverage for checkIfAuthorized function.
Add null check to init and middleware function.
Update pattern matching logic of apiKeys plugin to match the oauth plugin. Correct variable name 'stat' to 'stats' in test file. Add code coverage test cases for apikeys plugin and functional coverage for checkIfAuthorized function. Add null check to init and middleware function.