fix testUpdateDocument