Add test case for empty arrays [see #1]