Add tests for NULL top due to house event. In addition, add a test call graphing
of house events.
Fix Coverity reported bug of dereferencing wrong iterator.