Removing use of global event scheduler in unit test.