fixing functional tests for hosts_controller