Reset connections cache on close, add test