Improve tested and npm test
Add stress tester
Use hosts directly if not using auto detection
Fix socket reference