Create matrix-test.js

Includes 1 unit test for matrix constructor