adapt unittest for py25