fix LocationTest to use a more reliable API.