Connection tests.
Slightly adjusted error handling fluid mode, added tests.