@AdrianVovk Yes, this would work. The bannertopdf filter also works that way. It is a a program generating a banner page, and also the current test page. It is, as you say triggered by a special MIME type, but the input file does not only contain the magic string to get identified as this MIME type, but also some parameters.
We can modify bannertopdf to make a better test page, or even add a "testpage" filter dedicated for that purpose. And as each filter has access to the ...