fix tests an logger