Execute logFunction directly. Reset console.log in test.