OLS method, with test.
Minor bug fix.