Make tests for CI friendly

CI does not run "npm test", so --noAuth and --noSetup are not set.

Using `NODE_ENV` instead probably makes more sense here.