Move SetHeaderHandler out of the test suite