Refactor `ExecutorPreference#schedule` to be testable.

Added failing, ignored unit test.