Proposed fix for #35 by injecting instance of config object for tests