Add some unit tests for Matrix and Vector.