add gaunt zcas test suite example
eliminate unused variable
add some comments.
make logic throw message more descriptive