final test and file cleanup