Testing closestbeacon function