Fix a bug in setConfig
* fix a bug when setConfig didn't really set anything
* add a test for mentioned bug
* add expected assertions to tests
Improve setConfig method to accept config object
* setConfig method now accepts either a filepath or a plain javascript object
* setConfig returns now a reference to logger allowing for chaining