Fix error when running tests in Firefox

Without this fix, Firefox displays the following error when running tests:

    TypeError: 'log' called on an object that does not implement interface Console.