corrected the test for array sum pair