tests: fix deprecation error in router test