test scripts added, fixes in cal.y for write-dependency and pseudo-print