Fix bugs in example JSON files
Add unit tests for example JSON files and README