minor refactoring in SeriesLoader test