CB4662, CB4879 cleanup errors in file tests

fixing syntax errors that throw messages in the log file.