fixing tests with findNearestPoly