Unit test log writing improvements