Test for duplicate connection instance must comparel references
declarative connections - fixes #471