Sema4, a Stamford-based company that conducted COVID-19 tests for Connecticut, cut a contract short in December, but the state continued to pay it after it stopped doing testing work.