adding setup for logging and associated unit tests