Fixed inconsistency in getNeighbours method, added unit test.