test for working with JSON file