Fixed test to ensure deletion on publish