D 15920 - Expand the tests for charactes in the query component

This pull request re-organizes the files a little and adds a bunch of test cases for query components. Note that this only includes tests for the query component, and not for the path, authority, or scheme components. Those will follow in a future pull request.