Fixed the tests to work with latest Vertx api.