tests: add test for res.format in route

closes #2016