update and test case