Added the ability to validate API keys to test before they fail at the
requests.