Fixing deprecation warnings in linkedlist test