Test related to 'make mockrun'

Ensure that the scheduler is only setup when the backend is not mocked.