small code clean in test for carray