Fix truncated_datafile_test(), close all EUnit test keydirs