add testcases, rewrite cmd execute module