added decode to test to make it work in PY 3.x