Update unpublishing test for factory changes (squash to #6f8ebfc)