Metadata: fix check for Groups with options in duplicate groups test