tests: be more forgiving of partial publish by unpublishing before test publish