Hack: fix test and dyntest to correctly use $TESTFLAGS