changed assertion to ignore when socket.self() is false