fixed up tests with logger.