Add window method and tests to TimeRange object