share connections in js tests