Test persistent connection