Fix failed tests when importing Series from pandas.