added a simple unit test to the test
major changes to the jsontool