Update the unit tests for solving the issue #50.
It is assumed that the scheduled tasks that are cancelled may thrown a CancellationException or an InterruptedException.