Fixes #13

Also made several changes to refactor current tests.
check region when configuring client
Merge pull request #20 from zetsubo/Vigor-13_configuration_error

Fixes #13