src: fix typo
tests: adapt test to newer functions signatures

- Specifically _connect and _disconnect.