Fixed route matcher test

As indicated by @Thinkscape in #5671.