Changed test to read environment variables if config.json is missing (useful for Travis).