Complete connection.setup unit-tests