bugfix and test update for Adjacency class