add test cases for #686, #811, error.Error()
Merge pull request #981 from bronze1man/pr-test1

add test cases for #686, #811, error.Error()