Added unit test for matrix multiplication.
Merged from upstream.
Added matrix mult test case.