fixes signature of getClosest and clarifies test