Add test for empty arrays