added tests for scheduler events