added tests for export-by-tag functionality