fix delete bug in test