fix bug of test_add