Added test for empty array