Changed known_hosts.yml import function to raise Exceptions instead of returning -1 and adjusted unit tests