implemented for pytest of series.py