add test for accessing env during config