refactored exporting test