add test of _set_api_url()

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