cdx: clean up closest, reverse ops
closest takes precedence over reverse
'reverse closest' not supported, add test to reflect that