updated makefiles for new test program to work with lists of terms