Pdf report tests

1st commit is a test. 2nd commit is a quick and dirty solution; not sure if it's the right way to go or not.