Added parse and parseQueryString methods and tests.