Fix hookTests due to layout plugin change