fix tests for pdf header passing