Fix bug in version comparison, add test