added json rpc tests from api branch