Added tests for distance method for linked lists.