Linked List test cases on Swift