Tweak config.mk and add test Makefile target