Test words and close file resurces