Put tests in a common makefile