Resolve issues with compatibility with SIMULATE_CAN_CONNECT changes in ops.testing. Add Python 3.10 testing.