Ckozak/compliance event

+1 test would be good. With Mock it shouldn't be that hard. You could have mock return different values for ```getParent()``, ```inObject()```, and ```inRoot()``` to test the different cases.