taking into account TESTNAME variable in reftest (see #41)
Merge pull request #2691 from schaars/testname

taking into account TESTNAME variable in reftest (see #41)