fix the test_adv case