Improve test page content generation