terms vector test