Prevent connecting to real key server during unit-tests
Changed Gui API to take a driver object