Replace console.log calls with assert-able calls.