tests: fix terminfo capability independence.
tests: refactor: make Term tests more isolated.