Add test for basic matrix ops.