Fixed dependencies.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
Fixed unit test without network.

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