+ extract test base class
+ added a separate unit test project
ignore debug output in unit test

if "-d" is set, only the last line of the output will be assessed for "Program is SAFE/UNSAFE", ignoring the garbage added by the unit test logger.