added test for json format for document