Add a matrix multiplication testcase

And slightly modify test1.cpp