Add local connection support
Add tests support
Enable tests that passes.