Added test case for adjacency