adding additional test for contraction algorithm