Support TESTFLAGS
Merge pull request #3022 from pnasrat/3021-makefile-testflags

Support TESTFLAGS