fix tests overwriting process.exit