Created tests for dynamic array.