Add unit tests for example JSON files and README