Finished unit test for json