Add unit tests for 'vg.duplicate'.