Added some unit test for json and found an options bug that was fixed.