tests: qiToCF/cfToQI: Use exact comparison
Add an Ord instance