tests: fix tests stalling on node.js >= 0.10