using file test and doc