test export pdf functionality