Fixed header copying when using XCTest or OCTest