Fix localAddress test on OS X

Don't test the error message because on OS X it's EADDRNOTAVAIL instead
of EINVAL.
Merge pull request #1151 from nylen/fix-localAddress-osx

Fix localAddress test on OS X