fixed tests under Python 3