close the connection in the tests after responding