The recently completed 3rd Test in England contained the 2nd highest number of extras in a Test match:
England 1st innings - (b 15, lb 8, wd 6, nb 18) - 47
W.Indies 1st innings - (b 20, lb 10, wd 9, nb 3) - 42
England 2nd innings - (b 2, lb 6, wd 6, nb 12, pen 5) - 31
W.Indies 2nd innings - (b 14, lb 21, wd 8, nb 4) - 47
Totals - (byes 51, leg byes 45, wides 29, no balls 37, penalties 5) - 167
This is 10 short of the record, which is 177 (byes 37, leg byes 31, wides 2, no balls 103) set between West Indies and Pakistan at Georgetown in 1976-77.
The 5 penatly runs occured on the 5th ball in the 5th over of the English 2nd innings when the ball struck a West Indies helmet on the ground.