Fixed: the NODE_ENV was not set when running tests