Reorganize config.mk for easier readability.
Refactor unit test generation logic for easier expansion.