adding support for logging config and fixing tests