Permuted OLS: code coverage + associated bug fix + cosmit.