Add termcap library tests