Made Router mockable.