fix tests for py34