fix header assignment in mock creation