connect before test