logging with tests