Fix pyramid scan visit test modules issue