Add query parameters to route parameter test

If you add extra parameters to your uri ```/{id}?foo=bar```, the ```{id}``` will match but the ```foo=bar```  won't.

I also removed unused variable.