Add debug event unit test.