added testing environment and spec for router.