added test. fixed logging configuration