Lazy-initialize routePackages, fix tests