Added tests for triangular matrix