Unit test and dynamic array implementation.