Insert sleep 1 on testTerminal function