Update test framework, and fix warnings.