Added isQueryString method and tests.