added test for json output format