change initialize method signature
ensure no netword request is done if network unreachable (fixes #1), and enhance test coverage (#2)