rewrite tests/Makefile