Format the test logs correctly