Add a test to ensure no hanging in ParallelCompiler