Added tests for reverse linked list