There is a test, that is good! Charater "." should be backslashed in the regexpr. I'd consider also introducing limit cases: empty table, empty columns by creating corresponding tables and using -t repeatedly
I see that there are already a test for zero column table in test_fourth_table_zero_col
and if am not wrong table_index_stats is empty table