Improved UG decoder selection in get_decoder_from_uv_to_uv - now is selected nearest better codec. + written a test for the above