fix unicode decode error in tests