adding test for invalid api key
adding unit test to ensure error happens when location is not supplied... fixing bug found after implementing unit test