skip bad hostname test on OSX since it errors differently than linux; additional whitespace/linter cleanup