use the setUp() method to initialize the connection
add connection: close to the headers so we explicitly close the http connection. Fixes python3 tests as we no longer have ResourceWarnings for leaving the http connection closed