unittest for socket poll