Fix tearDown tests daemon

The observer have to stop in the teardown