Fix issue 187: incorrect variations of some functions in Tablatex module.
Add test for fixed issue 249 (Tablatex module).