fix tests
internal/router, internal/legacy: use TrimPrefix