Add CRITERION variable in the UniteTests template

Now we can define the per-program criterion in the Makefile before
including this tempalte.
Add the loc.txt and inst.txt for test4

Now we tested all the three cases of specifying the criterion.