[WIP] Hostname use

Added:
- *_try_assigned_hostname* fn which assigns generated *hostname* if conditions are met,
- unittests for *_try_assigned_hostname* fn.
rename function to ``get_user_iso3_country_name``