started adding some tests to pdf_spec.rb