Added a timeRange filter and the accompanying tests