added a unit test for json stuff