Enhanced assertions for header id mapping tests