added ability to load in JSON data for tests