Add test for lifecycle.makeEnv()