Fixed tests for lazy connect