add testing case with empty array/hashstab