Added tests for matrix2numpy