Test environment modes and lazily invoke environment inquirers.