fix tests not finishing in node
speed up live-stream test
code style