monkey patch the global router in tests