Add tests for scheduled publishing

This does not actually test the management command for scheduled pages.