fixes bug when deleting partial content

updated tests to reflect change