Custom look-ahead in test