Router: add if/else test, shorten existing one
Router: add if/else test, shorten existing one

The code in one of the tests doesn't fit in a 40-column line, let's
shorten it to prepare for next commit.

scalameta/scalafmt,scalameta/scalafmt,scalameta/scalafmt,scalameta/scalafmt