by adding extra element to the array with the test cases