Modified some tests in test_array.cpp