fixed timeout, raise error when no hosts available
"npm test" now succeeds