Test headers exchange validation.
merge bug25488 into default