Beginnings of private subdomain test.

See also https://codereview.appspot.com/110690043/.

@eranmes
Put everything below this in a main() function so other bits in this module can be used by importing it.