add logger test handler on tests so that output log does not go to stdout