add some tests, expose headers on response