Fix tests and add dotenv to .config.js