Fix printf in tests.