cursor wrappers hardened + disconnect unittest