DSN Support implemented.
fix tests
style update