Tests that header timestamps are added correctly