tracked down an issue with the delete()

improved test coverage