Refine test Makefile