Fix lifecycle to pass `Infinity` for config env value
Add test for lifecycle.makeEnv()