backwards node compat fix for exit code in test