fixed problem with mocking so if pdf tests fail, others don't fail