Fix Makefile for running valgrind with old tests.
Merge pull request #1521 from three-comrades/valgrind

Fix Makefile for running valgrind with old tests.