add Matrix test
Merge pull request #250 from wise9/feature/mocha_matrix

add Matrix test