Add unit test for 'vg.comparator'.