BasicScheduler unit tests improved

This should increase reliability of the unit test for the BasicScheduler class.