delete() and tests