test case for updating a document