add env trait
optionally export the environment
default to testing env