tests: add router.use validation tests

closes #2299