Added integration test.
Events are now passed a node object and a context object.