Move String.format to AbstractGameTest.