add more test in test_basic_alg