Use header handle to write headers.
Clean up tests.