add When clause to AR test spec