fix t-func and iterations test