Added test for version comparison, also corrected version comparison.