Fix the tests for unpublishing