Partialial pivoting correction and testing