Test dynamic array