Fixed order of destruction of root container.
Updated event test suite.