tests now pass, if we detach the listeners from the socket after each test is done