Fixed test to not screw up console for mocha