Added GetUserByAPIKey func and tests changed ApiKey to APIKey and small refactor on tests
Added check to APIKey