added conditional TESTNAME check to Makefile