Extend StageSetupImpl and simplify tests.