added the test flags in texfuncs