Added more unit tests for offset. Fixed an offset issue relating to table header...