added testing for logging