Made test running compatible with Windows

"npm test" wouldn't run under Windows due to the fact that Windows
doesn't support shebang style executable scripts. Also the default
binding for UDP Datagram servers is 0.0.0.0 which is invalid for
Windows. I specified the binding in the test to be 127.0.0.1 and now
everything passes and runs properly.