fix console.log when test covrage