test fix for detecting broken connection on sub sockets
(cherry picked from Jason's tree)
adjust the test according to Jason's fix