Added unit tests to cover the schedulers.

Can be executd by (first installing the new npm dependencies) then running 'sudo mocha' from the base dir of this app.