tests: add hack that refresh global logging dict in factory.main before each test
factory: add connects dict with already exists envs.connect, used only by set_connect_env context manager
factory: now set_connect_evn checks if connect already exists before creation new one fixes #1