New TimeFilter class and tests