BLOOMFIELD — With a trial underway to determine if the state is meeting its obligations to poorer school districts, Gov. Dannel P. Malloy visited this racially diverse Hartford suburb Tuesday to celebrate the turnaround of Bloomfield High School, where test scores and graduation rates have climbed significantly over the past five years.