Write location-based tests