Test for utility matrix.