Introduced hosts dictionary
Added host detection to the project.
Corrected all affected tests.