remove unused variables in test_nearestneighbors