Remove legacy_modes from some test cases