Add test for import/export as attributes