testing: test host validation

We are going to need some nginx-specific system tests, and this seemed like a good place to start.  This adds two tests, as well as some infrastructure.  With #193 applied, both tests pass.