test model events

In addition to adding tests for model events - fixes #28