implementing TimeSeries testcases