add tests for Graph.find_adjacent_square() and bugfix