Add tests for xmlrpc functions.

Change-Id: Id04587b608b9ec4c9680cdf94dd0aaeef82fdb4d