add date loop and test data