Added test for empty array
Added test for single element array