Added Document update methods, and test case