Fix tests for OS X machines with IPv6 enabled.
Merge pull request #95 from ctriv/master

Fix tests for OS X machines with IPv6 enabled.