Add unittests

 - Add test for JSONRPCClient
 - Add test for RegistryClient