Adds filename unit test

Adds test for custom filename option for generated PDF.