Fix table header height logic and failing tests

The y-coords for the add_headers were being wrongly set, resulting in subsequent table header rows being wrongly offset from the first row.

I also fixed the failing tests, although I have to say I may not entirely know what I'm doing here. Still fairly new to Ruby and tests.