allow test paths to have querystrings

Currently if you provide a test path with a querystring, the test hangs on the browserstack side and eventually times out.  This is caused by the code that adds the test suite specific patch libraries.  A querystring prevents the current pattern matching code from detecting the html test file.  The test suite specific patch library is not added to the test html page.  This pull request fixes the pattern matching code to properly detect the test html file.