Added tests to verify the adjacency list.