added test matrix per matrix multiplication, fixed a bug