re write tests to allow sockets then refactor to use my test helper file socketCleaner.js