Error checking for event model

Also some whitespace fixes in the test file, and adding a missing getter test