Add test for exporting groups.