fix the issue #1 and add delete test case.