Fix testCanSwitchTypesAccordingToRulesAsArray