Test for matrix ops and some tests for util