add cmd options. test framework done.