Adds test for expansion deletion when parent is deleted.