Fixed adjacency test loops