drop in a template for unit testing base daemon