Simplify test case and add case of Array.