Added test for persistent connections