restore lib.toQueryString for test spec