Expand the apply template in the compile test