Refactored the base environment_json tests into a shared example to test both environment_json and computed_environment_json.