Added unit test of restClient().

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>