test getLocation of provider