ctest: Improve errors when no preset is specified Apply the same logic to both "equals" and non-"equals" forms of the argument when no preset is specified, and add test cases.