Add test for attaching pdf