added some testcases for documents