test script for text IO programs