Add in a 'TestCanonicalRedirect' hook to be called when about to make a redirect...