unit tests for get-document and update-document