Add tests for events and views
Merge pull request #31 from mdmoss/master

Tests and views and utils