Gov. Snyder testifies in Detroit bankruptcy trial