Move scheduling tests to clojure and port relevant tests from Immutant.