Minor changes in RPNS, correction of bugs in json files, added .json tests