add test case for zero length array