keep working python unittest part.

py/core/cmd.py
bug, typo fix.
update some docstrings of some functions.

py/tester/testCmd.py
add more test functions.