[#18] used File.open {..., moved deleting files to teardown