cleaned up header test code