Fixed a bug with the WebdriverFactory

Fixed a bug in the integration test where a remote web driver and a local webdriver was started.