Fix exception tests in train-test eval test
Make --log-file truncate instead of append