completed tests and fixes for multi instance support using connections