Fix header testing, and test for ORIGIN header.