increased coverage and fixed in json rpc