[LazyCallGraph] Port test case from r240039 to LCG.