Fixed bug in ThingFactory.
Fixed tests according to ManagedThingProvider refactoring.

Signed-off-by: Dennis Nobel <d.nobel@external.telekom.de>