add returned http headers to the response, tests, fixes #19