Add spec and comment for edge case in match_time