Add event creation library and implement in scheduler.

I don't see a lot of value in this test.  It is a lot of test code and a lot of touching the should-be-private parts of the module under test, in order to cover not a lot of lines.  I'd rather leave this code un-unit-tested and have an e2e test, or a manual test plus a promise of an e2e test in the future.