Added test framework.

Just `host` and `port` should do here, and I think in the `phantom` case, too.