Added test to register into connection_manager to improve coverage.
This test check what happen if request give unexpected error.
Fix bug in test where self.daemon.cfg isn't updated after test
Added test for creating cfg with custom sharing path.