versions_cmp function added with its own test (and test infrastructure)