Fix SpecialStanza and update tests for dispatcher module

Add getTop method for SpecialStanza.
Fix tests for dispatcher module according latest changes in check_hooks method.