added test for convertNeighboursToPolar