test by file