add unit test to cover delete all