fixing the export functionality and corresponding test