test genration and downloading pdf