Added terminal controller test code.