added a json test, probably not 100% functional