Fix Triangular methods for the case where the diagonal is unity. Add some tests and split the triangular tests into their own test file.