Add a case for the TermSystemError in the tests. Need further factorization but working atm.