testing the addLocation function