More case insensitive tests and read write lock for connections