tests with doubly linked lists
add tests for array