added logic to switch off the test lat and long