makefile: improvements to test task