add connection count test in case of failure