corrected test_array.cpp