update test case for remove element.