KH-203: Don't bother to compare versions that are equal

Also ensure that we are not comparing later version against earlier.
More IT test cases.