Add tests for is_in_digest_window