fixes the mocking of console.log.