modify for go agent testcases
add testcases to coverage some error conditions
Merge pull request #18 from panfangmin2014/hw-issue-31

Hw issue 31