test writing the etc/hosts file