comparison: fix validation tests and add a new test