Minor code cleanup, and made one test case a little more strict
[Unit testing] More fine-grained control of testing for a match. It is no longer required to check the parameter count just to see if any route matched.