Early in the pandemic, a few cities and countries around the world began testing sewage for evidence of the coronavirus, hoping to detect rising infections early.