tests: jpegenc: Adds some getcaps test

Adds tests for the jpegenc getcaps function, to avoid
having it returning non-subset caps
2 files changed