tests: Improve test for supported encodings.