Fix nearly all tests.