Linked list deletions and moved test outside to a different file