Adjacency tests