when Invalid router key type is passed should throw InvalidArgumentException
test more
add missing template file