old_contents: var test = require('tape');
  var tapeworm = require('../');
  
  tapeworm.infect(test);
  
  test('infect should inject a custom favicon into the DOM', function (t) {
    var favicon = document.querySelector('link[rel="icon"]');
    var faviconHref = favicon.getAttribute('href');
  
    t.equal(true, !!favicon, 'favicon element exists');
    t.equal(
      true,
      /^data:image\/png;base64,/.test(faviconHref),
      'favicon href is a base64 png'
    );
    t.end();
  });
  
  test('infect should add a method html to t', function (t) {
    t.equal(typeof t.html, 'function', 't.html is defined');
    t.end();
  });
  
  
  
new_contents: var test = require('tape');
  var sinon = require('sinon');
  var tapeworm = require('../');
  
  tapeworm.infect(test);
  
  test('infect should inject a custom favicon into the DOM', function (t) {
    var favicon = document.querySelector('link[rel="icon"]');
    var faviconHref = favicon.getAttribute('href');
  
    t.equal(true, !!favicon, 'favicon element exists');
    t.equal(
      true,
      /^data:image\/png;base64,/.test(faviconHref),
      'favicon href is a base64 png'
    );
    t.end();
  });
  
  test('infect should add a method html to t', function (t) {
    t.equal(typeof t.html, 'function', 't.html is defined');
    t.end();
  });
  
  test('t.html should call console log', function (t) {
    sinon.spy(console, 'log');
    t.html('<div></div>');
    t.equal(1, console.log.callCount);
    t.end();
    console.log.restore();
  });
  
  
subject: Add test to make sure console log is hijacked