Converting tests to read API key from environment variable

This will make it easier to run tests on Travis CI (without exposing the key).
Adding encrypted API key so Travis CI can run tests