Refined location testing utility