handle and test the 'deleted' case