simplify test rule in Makefile