fixing tests for py34