schedulething: starting unit tests and refactoring for _handleThingConfig, fixed setup on other unit tests