COCG linear solver fixed, unit-test modified (log-det)