bugfix delete test code