add test to get location