Adds tests of simple tridiagonal operations

Also fixed some typos in `linalg/tridiag.jl`. Follow-up to #2611.