Use StringBuilder for testFile

The existing test are way too short to show any performance increase,
but I think it might pay off for larger test (which will come
eventually), and it’s better style anyways.