+function decodeQueryString (path: string) {
+ return decode(path.split('?')[1])
+}
+
+function unwrapBody <T> (test: request.Test): Promise<T> {
+ return test.then(res => res.body)
+}
+
+function unwrapText (test: request.Test): Promise<string> {
+ return test.then(res => res.text)
+}
+