Add unittest for xmlrpc.