spec tests written for host.rb