fixed duplication connections in tests