add the ftest function.