added tests for finding loops inside linked list