Added tests for export functionality