Check for TERM in external environment before setting in tests
Fixes an exception when running the test suite without TERM defined.
Signed-off-by: Alexander Scheel <ascheel@redhat.com>
[rharwood@redhat.com: rewrite commit message]
Reviewed-by: Robbie Harwood <rharwood@redhat.com>
Merges: #206