fixed some tests, make connection parameters configurable