Fix version comparison in function specs