working logs with tests