Finish Test of Pairwise Algorithm