fix bug for app_test