add testcase for cast null to array