add error checking to T=CL test program