Fix tests on py34