Fix almost all test case in test/tdd.sh