added test of json codec