Add first version of isAdjacentTo method with tests