tests and improvements to grep work in util
temp files to get exit codes
tested add_line_to_file changes