Add test for matching route when controller and name are present

Please review @incuna/js
I think it should match on `name` if both are specified. Will require changes to the source.