Added a bunch of tests for Matrix.as