fix python 3 issue with decoding in tests