minor fix and a test for pandas.Series.