add --debug option to unit-test to not fork()