Run tests without an api key in environmental variables.

The README doesn't mention this but the tests fail if there is no api key set in the environmental variables. I just added a simple check to see if there is an api key set and if there isn't, just fake it for the tests.