In IE8 and IE9, the tests were failing because the caption was added after the table body. I added this to ensure the caption was always at the start.