test/Makefile: add rules for the automatic tests