Fix tests under python 3.4.2