data.json error handling and tests improved. All tests work.