updating to call and pass in a config if a required module is a function and cleaning up tests
Merge pull request #1 from doowb/master

updating to call and pass in a config if a required module is a function...