fixes #1755

Added test for the condition where stripTrailingSlash failed if a query string was present. Test fails before the fix. Passes after the fix.