Test PDF Upload page splitting
Add more descriptive output
Extract common code