Fix net host test

This is mostly just copy of IPC test. Also I fixed done messages for ipc tests.
ping @tianon @jfrazelle