Remove legacy_modes from test cases