added an afterDelete test