Fix a unit test issue when check forks.