Fixed unicode decode error when running unit-tests under python 2.x