Offline route fragment tests by injecting mock router.

Prevents background NPEs and intermittent failures.