test Delete function