Fix for tests teardown where observer is involved