In reply to ilia:
I would recommend using type overriding with factory over using parameters. This gives you more flexibility and creates fewer dependencies. If you use parameters to override, you can wind up in a situation with too many parameters in your global test base. Also, it doesn’t solve the problem directly accessing additional overridden properties because the compiler won’t let you reference them when the type is not overridden.
When you use the factory to create your env, you can always use a dynamic $cast to get the to properties in the extended classes.