Bug 906400 - convert test-events.js to use the new test framework