test tlocation func