Introduce a test helper function to the locate tests.
Add some more low-level tests for country variant of locate functionality.