Added tests for the linear algebra functions