iOS location testing code.