Makefile: break out test target in smaller pieces