Add tests for entity and view events
Flatten nested behaviors and attach directly to view