Test case for converting to an array
test cases..