test location code