avoiding synchronized console.log in printing
different tests for jsdom and phantom