JUnit test for Scheduler

TODO: see with the teacher for the problem with Scheduler.action() method