router: added the units tests