Added test for empty arrays
Added test for empty arrays