Makefile dependencies fixed for test programs