fix bug delete test