fix err code check
increase test timeout to allow coverage analysis
share json rpc error object implementation