Fixed testing for new image/file pages and templating