Test get digits use the correct encoding.

The test-get_digits was using only DPD encoding, now it identifies
which data format it should use.