add a new test
declare Chan->n and Chan->s volatile
use longs in Chan