Bug in hosts parsing reported error in comparing expected output. Parse also last line of /etc/hosts.