fix f_test and f_test2