Fix tests to properly wait for all responses before finishing
added unit tests to folded headers started with \t