Updated qunit tests, adding event example.