- fixed bug in ApplicationContext that triggered null reference exception
- added several more unit tests for active event invocation