fixed cli tests
only use Term::ReadKey if there is a terminal