Tests and benchmarking of find_nearest.py