add a test that uses getEncodingInfo