Testing for COVID right before leaving for an outing or the start of an event helps reduce the risk of spreading the virus, according to a study.