Enabling unit testing and logging