Updated test script for locations

Added some more code for fetching the map locations.