name was being put in the global scope

Just found this using mocha testing amqp