Made toQueryString method testable
v0.1.13