Add test helper to stub gone route registration