Make sure the test joins the active executor thread before waiting for the executor to be GC'ed. Reviewed-by: mchung, martin
Reviewed-by: mchung
Reviewed-by: darcy, ihse