Fixed zpotrf correction when error is encountered on first ionic step.
Added nosetests