Add some tests for events. Refs #200
More tests for #200, this was really bugged!
Fixes for #200
Update build.