createForProduction creates and caches JavaCoreApplicationEnvironment instance, which can alter behavior of subsequent tests