corrected testpatt elaboration for chained-waiton situation