Add version factory tests