Test location with random generated string.