fix persistent connection tests