Add test case for updating documents from JSON strings