fix flake8
add test to check if we are able to connect using ipv6