Add behat test for generating PDF + fix error in doing so in firefox