Writing the stdout to a log file & removed test name code