fix tests for execution in non-tty environments (Jenkins for instance)