solve pdf err in tests