change collectHooks to _collectHooks and update tests
fix router tests to work with new dispatch signature