Added tests for linear algebra.