fixed test_cdo and segmentation fault using returnArray