test setTableHead function