Also add TESTS_LOG_STACK parameter so that stack-usage logging can be enabled without editing Makefile.