Added tests for tt and inv.tt