Node console mock for unit testing.