removed trailing whitespace
added a nameserver test case, and fixed up nameserver and vendingmachine code that it exposed