Only use one anonymous function to help with scoping.
Adjust test for log and noConflict, since log didn't seem to be defined in global.