A tweak for bug #7752.  It now properly removes things from the device and test lists when they are unpublished.