tests delete, bug fix