Correctly write out logging information of tests