Fix mat_rep_uptri test.