Add initial gethost* funcs with tests