People in lower-income communities in Massachusetts received fewer COVID-19 tests than those in more affluent areas during the first wave of the pandemic in the state, despite higher rates of infection.