Add test coverage for LegacyEmptyPass.