test code for delete bug