Fixed decoding issues in tests in Python 3.x.