[FLINK-1119] Make sure test mini cluster has started properly before submitting the test job.