Unit tests for export functionality