Fix tests on python 3.4