[#1246] Faris : Added functional test.
[#1246] Faris : fixed functional test in pdf_export.