Switch to environment variables in tests. (Codeship)