Added test case for update_replace.