fix tests for py25