Add NODE_ENV support to tests