terminal logic tests