Fix scheduled publishing unit test.

This should not have been stubbing the internals of another unit.